<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib uri="/page" prefix="public"%>
<public:pageControl classPath="app.portalbs.system.appmanager.AppTypeTree"/>
<script language="javascript" >

	function appTypeTree_onclick(tree,page){
		
		 if(tree.treeNode.isParent){	
			 page.find("appTypeTreeFrame").view.url = "";			 
		 }else{	
			 page.find("appTypeTreeFrame").view.url = "app/appList.jsp?appType=" + tree.treeNode.nodeID;	 			 
		 }
		 
	}
	
	 /* 树展示处理 */
	 function appTypeTree_show(tree,page,type){
		 
		 if(type == "add"){
			 
			 if(tree.treeNode.level == 0 ){
				 return true;
			 }else{
				 return false;
			 }
			 
		 }
		 
		 else if(type == "edit"){
			 if(tree.treeNode.level == 1 ){
				 return true;
			 }else{
				 return false;
			 }
		 }
		 
		 else if(type == "delete"){
			 if(tree.treeNode.level == 1 ){
				 return true;
			 }else{
				 return false;
			 }
		 }
		 
		 else{			 
			 return false;		 
		 }
		 
	 }
	 
 	function appTypeTree_page(tree,page){
 		
		 return {
			url : "appTypeEdit.jsp",
		    width : "700px"
		 };	 
		
	 }
	
</script>

